#ifndef _CORE_HARMONY_H
#define _CORE_HARMONY_H

void harmony_process_new(int fd);
void harmony_process_del(int fd);
void harmony_process_recv(int fd, uint8 *buf, size_t len);
void harmony_process_send(int fd, uint8 *buf, size_t len);

uint16 harmony_idcrypt(int fd, int apply);
void harmony_idcrypt_enable(int fd);

void harmony_packetcrypt_enable(int fd);
bool harmony_packetcrypt_is_enabled(int fd);

void harmony_core_init();
void harmony_core_final();

extern uint8 login_crypt_key[32];

#endif
